home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / sample code / graphics 3d / opengl drawsprocket / read me < prev   
Encoding:
Text File  |  2000-06-23  |  1.9 KB  |  20 lines

  1. OpenGL DrawSprocket
  2. A simple of example of using OpenGL with a full screen DrawSprocket context
  3.  
  4. Version 1.2
  5. 2/17/2000
  6.  
  7. Version 1.2: Cleaned up agl font implementation, added context and card vendor info to display.  Fixed agl font issue with setting GL_UNPACK_ROW_LENGTH.
  8.  
  9. This is an example of OpenGL and DrawSprocket integration for full screen drawing, correctly handling multiple displays.  Also, this shows how to get the version of DrawSprocket in use for both DrawSprocket 1.1.4 and 1.7 and demonstrates multiple OpenGL pixel format examples.  It also illustrates a simple OpenGL buffer swaps per second counter via AGL font support.  This is done with a generic string drawing routine that can be used in any OpenGL application.
  10.                 
  11. The optimal way to select a rendering context would be to check the available devices, find the best, then present the user with a selection dialog only if there are more than one "best" device.  In leu of that, the two best other options are:
  12. 1) Iterate through the available devices find the best renderer, build a DSp context on this, then build your OpenGL context.  The downfall of this method is that you know nothing about the graphics capabilities of the device and the user can't select another screen.  The upside is that you get a renderer that is has the capabilities you want.
  13. 2) Allow the user to select a screen to use, build a DSp context and then a OpenGL context.  This second method is simpler but relies on user knowing which device is the best at 3D.
  14.                 
  15. This sample illustrates the second method which makes it simpler and allows us to illustrate the DSp/OpenGL interface well.            
  16.  
  17. Note: You will have to change the access path for the OpenGL SDK with valid a one for your local environment.  Additionally, you may have to add a path to the DrawSprocket SDK if you are using Universal Interfaces 3.2 or earlier.
  18.  
  19. Requirements: Mac OS 8.1+, OpenGL SDK, Universal Interfaces 3.3+ or DrawSprocket SDK
  20.